package com.enation.app.javashop.api.client;

import com.enation.app.javashop.service.member.MemberCollectionShopManager;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore;

/**
 * 会员收藏店铺相关api
 *
 * @author fk
 * @version v7.0
 * @date 20/2/28 下午8:10
 * @since v7.2。0
 */
@Api(description = "会员收藏商品api")
@RestController
@RequestMapping("/client/members/collection-shop")
@Validated
@ApiIgnore
public class MemberCollectionShopClientController {

    @Autowired
    private MemberCollectionShopManager memberCollectionShopManager;

    @PostMapping("/{seller_id}/change-name")
    public void changeSellerName(@PathVariable("seller_id") Long sellerId, @RequestParam("seller_name") String sellerName) {

        memberCollectionShopManager.changeSellerName(sellerId, sellerName);
    }



}
